package com.situ.mall.oop;

import org.junit.jupiter.api.Test;

public class Demo {

    public static void main(String[] args) {
        String str = "java";
        foo(str);
        System.out.println(str);
    }

    //形参
    private static void foo(String text) {
        text = "windows";
    }

    @Test
    public void test1() {
        Person person1 = new Person();
        Person person2 = new Person();
    }

    @Test
    public void test111() {
        byte a = 12;
        byte b = 12;
        //b = a + b;
        b += a;
        System.out.println(b);
    }

    public void test2() {
        final int[] array = {1, 2};
        //array = new int[]{2, 5};
        array[0] = 4;
        System.out.println(array[0]);

        String str = "666" + new String("666");
        StringBuilder builder = new StringBuilder("111");
        String str1 = builder.toString();
    }
}
